﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.SqlClient;
using QuanLySuKien.model;

namespace QuanLySuKien
{
    public partial class DanhSachKH1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //DisplayCompanyInfomation();
        }
        private void DisplayCompanyInfomation()
        {
            string filter = "%" + filterTextBox.Text + "%";
            if (filter == string.Empty)
            {
                filter = "%";
            }
            try
            {
                using (SqlDataReader reader = ThongTinKHDAC.GetKhachHangInfomation(filter))
                {
                    Listview1.DataSource = reader;
                    Listview1.DataBind();

                }
            }
            catch (SqlException ex)
            {
                StatusLabel.Text = ex.Message;
            }
        }
    
    }
}